package com.caldremch.calhttp.http.exception;

/**
 * @author Caldremch
 * @date 2018-01-19 22:49
 * @describe 网络请求异常基类
 **/
public class BaseException extends RuntimeException {

    public int mCode = -1;
    public String mMsg;

    public BaseException(int code, String msg) {
        super(msg);
        this.mCode = code;
        this.mMsg = msg;
    }

    public BaseException() {

    }

    public static BaseException newInstance(int code, String msg){
        return new BaseException(code, msg);
    }

}
